package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.OrganizationDao;
import com.ericom.model.Organization;
import com.ericom.service.OrganizationManager;
@Service("organizationManager")
public class OrganizationManagerImpl extends GenericManagerImpl<Organization, Long>
		implements OrganizationManager {
   OrganizationDao organizationDao;
   @Autowired
	public OrganizationManagerImpl(OrganizationDao organizationDao){
		super(organizationDao);
		this.organizationDao=organizationDao;
	}
	

	@Override
	public List<Organization> findByName(String name) {
		
		return organizationDao.findByName(name);
	}

}
